Page({
    data:{
        optionsItemData:[ //各项显示数据内容
            {
                id:0,
                text:"绑定手机号",
                isUpdate:true
            },
            {
                id:1,
                text:"个人信息"
            },
            {
                id:2,
                text:"收货地址"
            },
            {
                id:3,
                text:"安全中心"
            },
            {
                id:4,
                text:"隐私协议"
            },
            {
                id:5,
                text:"用户协议"
            },
            {
                id:6,
                text:"其他协议"
            }
        ]
    },
    // 点击进入绑定手机号页面
    switchToBindPhone(){
        wx.navigateTo({
            url:"/pages/bindPhone/index"
        });
    },
    // 点击进入各页面事件监听
    switchNewPage(e:any){
        switch(e.currentTarget.dataset.id){
            case 1:
                wx.navigateTo({
                    url:"/pages/userInfo/index"
                });
                break;
            case 2:
                wx.navigateTo({
                    url:"/pages/address/index"
                });
                break;
            case 4:
                wx.navigateTo({
                    url:"/pages/protocol/index"
                });
                break;
            case 5:
                wx.navigateTo({
                    url:"/pages/protocol/index"
                });
                break;
            case 6:
                wx.navigateTo({
                    url:"/pages/protocol/index"
                });
                break;
        };
    }
});